home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1992-08-29 | 2.4 KB | [ TEXT/ALFA]
open in: MacOS 8.1
extracted
|
Win98
extracted
|
DOS
extracted
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary ).
You can browse this item here: Debugging
Confidence Program Detection Match Type Support
10%
dexvert
MacBinary (archive/macBinary)
fallback
Supported
1%
dexvert
Text File (text/txt)
fallback
Supported
100%
file
MacBinary II, inited, Sat Aug 29 12:43:47 1992, modified Sat Aug 29 12:43:47 1992, creator Alpha editor, type ASCII, 1806 bytes "Debugging" , at 0x78e 382 bytes resource
default (weak)
99%
file
data
default
74%
TrID
Macintosh plain text (MacBinary)
default
25%
TrID
MacBinary 2
default (weak)
100%
siegfried
fmt/1762 MacBinary (II)
default
100%
lsar
MacBinary
default
id metadata key value macFileType [ TEXT] macFileCreator [ ALFA]
hex view +--------+-------------------------+-------------------------+--------+--------+ |00000000| 00 09 44 65 62 75 67 67 | 69 6e 67 00 00 00 00 00 |..Debugg|ing.....| |00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000040| 00 54 45 58 54 41 4c 46 | 41 01 00 00 00 00 00 00 |.TEXTALF|A.......| |00000050| 00 00 00 00 00 07 0e 00 | 00 01 7e a6 c5 59 c3 a6 |........|..~..Y..| |00000060| c5 59 c3 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.Y......|........| |00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 14 06 00 00 |........|........| |00000080| 35 2e 30 62 32 32 20 69 | 6e 74 72 6f 64 75 63 65 |5.0b22 i|ntroduce| |00000090| 73 20 74 68 65 20 54 63 | 6c 20 66 75 6e 63 74 69 |s the Tc|l functi| |000000a0| 6f 6e 2d 74 72 61 63 69 | 6e 67 20 63 6f 6d 6d 61 |on-traci|ng comma| |000000b0| 6e 64 20 27 74 72 61 63 | 65 46 75 6e 63 27 2e 20 |nd 'trac|eFunc'. | |000000c0| 74 72 61 63 65 46 75 6e | 63 20 0d 61 6c 6c 6f 77 |traceFun|c .allow| |000000d0| 73 20 79 6f 75 20 74 6f | 20 74 72 61 63 65 20 61 |s you to| trace a| |000000e0| 20 73 70 65 63 66 69 63 | 20 66 75 6e 63 74 69 6f | specfic| functio| |000000f0| 6e 20 77 68 65 6e 65 76 | 65 72 20 69 74 20 69 73 |n whenev|er it is| |00000100| 20 63 61 6c 6c 65 64 2c | 20 73 65 6e 64 69 6e 67 | called,| sending| |00000110| 20 74 68 65 20 0d 6f 75 | 74 70 75 74 20 74 6f 20 | the .ou|tput to | |00000120| 61 6e 6f 74 68 65 72 20 | 77 69 6e 64 6f 77 2e 20 |another |window. | |00000130| 54 68 65 20 69 6e 64 65 | 6e 74 65 64 20 74 72 61 |The inde|nted tra| |00000140| 63 65 20 6f 66 20 74 68 | 65 20 66 75 6e 63 74 69 |ce of th|e functi| |00000150| 6f 6e 20 69 6e 63 6c 75 | 64 65 73 20 61 6c 6c 20 |on inclu|des all | |00000160| 0d 70 61 72 61 6d 65 74 | 65 72 73 2c 20 65 61 63 |.paramet|ers, eac| |00000170| 68 20 61 72 67 75 6d 65 | 6e 74 20 65 6e 63 6c 6f |h argume|nt enclo| |00000180| 73 65 64 20 77 69 74 68 | 69 6e 20 73 69 6e 67 6c |sed with|in singl| |00000190| 65 20 71 75 6f 74 65 73 | 2c 20 61 73 20 77 65 6c |e quotes|, as wel| |000001a0| 6c 20 61 73 20 74 68 65 | 20 0d 66 75 6e 63 74 69 |l as the| .functi| |000001b0| 6f 6e 20 72 65 73 75 6c | 74 2e 20 0d 0d 54 68 65 |on resul|t. ..The| |000001c0| 20 73 79 6e 74 61 78 20 | 6f 66 20 74 68 65 20 66 | syntax |of the f| |000001d0| 75 6e 63 74 69 6f 6e 20 | 69 73 3a 0d 0d 74 72 61 |unction |is:..tra| |000001e0| 63 65 46 75 6e 63 20 6f | 6e 20 3c 66 75 6e 63 4e |ceFunc o|n <funcN| |000001f0| 61 6d 65 3e 20 3c 77 69 | 6e 4e 61 6d 65 3e 0d 74 |ame> <wi|nName>.t| |00000200| 72 61 63 65 46 75 6e 63 | 20 6f 66 66 0d 74 72 61 |raceFunc| off.tra| |00000210| 63 65 46 75 6e 63 20 73 | 74 61 74 75 73 0d 0d 0d |ceFunc s|tatus...| |00000220| 46 6f 72 20 65 78 61 6d | 70 6c 65 2c 20 69 66 20 |For exam|ple, if | |00000230| 49 20 77 61 6e 74 20 74 | 6f 20 74 72 61 63 65 20 |I want t|o trace | |00000240| 74 68 65 20 70 72 6f 63 | 20 27 6e 65 78 74 46 75 |the proc| 'nextFu| |00000250| 6e 63 27 20 28 64 65 66 | 69 6e 65 64 20 69 6e 20 |nc' (def|ined in | |00000260| 0d 70 72 6f 63 73 2e 74 | 63 6c 29 2c 20 74 68 65 |.procs.t|cl), the| |00000270| 20 66 6f 6c 6c 6f 77 69 | 6e 67 20 6d 69 67 68 74 | followi|ng might| |00000280| 20 62 65 20 61 20 6c 6f | 67 20 6f 66 20 6d 79 20 | be a lo|g of my | |00000290| 61 63 74 69 76 69 74 79 | 20 61 74 20 74 68 65 20 |activity| at the | |000002a0| 54 63 6c 20 73 68 65 6c | 6c 3a 0d 0d 57 65 6c 63 |Tcl shel|l:..Welc| |000002b0| 6f 6d 65 20 74 6f 20 41 | 6c 70 68 61 27 73 20 54 |ome to A|lpha's T| |000002c0| 63 6c 20 73 68 65 6c 6c | 2e 0d 41 6c 70 68 61 3e |cl shell|..Alpha>| |000002d0| 20 74 72 61 63 65 46 75 | 6e 63 20 6f 6e 20 6e 65 | traceFu|nc on ne| |000002e0| 78 74 46 75 6e 63 20 74 | 72 61 63 65 57 69 6e 0d |xtFunc t|raceWin.| |000002f0| 41 6c 70 68 61 3e 20 74 | 72 61 63 65 46 75 6e 63 |Alpha> t|raceFunc| |00000300| 20 73 74 61 74 75 73 0d | 46 75 6e 63 2d 74 72 61 | status.|Func-tra| |00000310| 63 69 6e 67 20 6f 6e 2c | 20 66 75 6e 63 3a 20 6e |cing on,| func: n| |00000320| 65 78 74 46 75 6e 63 2c | 20 77 69 6e 3a 20 74 72 |extFunc,| win: tr| |00000330| 61 63 65 57 69 6e 0d 41 | 6c 70 68 61 3e 20 0d 0d |aceWin.A|lpha> ..| |00000340| 4e 6f 77 20 49 20 63 72 | 65 61 74 65 20 61 20 6e |Now I cr|eate a n| |00000350| 65 77 20 77 69 6e 64 6f | 77 2c 20 22 64 69 72 74 |ew windo|w, "dirt| |00000360| 79 22 20 69 74 20 73 6f | 20 74 68 61 74 20 49 20 |y" it so| that I | |00000370| 63 61 6e 20 67 65 74 20 | 61 20 73 61 76 65 20 64 |can get |a save d| |00000380| 69 61 6c 6f 67 2c 20 0d | 61 6e 64 20 73 61 76 65 |ialog, .|and save| |00000390| 20 69 74 20 61 73 20 27 | 74 72 61 63 65 57 69 6e | it as '|traceWin| |000003a0| 27 2e 20 4e 6f 74 65 20 | 74 68 61 74 20 74 72 61 |'. Note |that tra| |000003b0| 63 69 6e 67 20 69 73 20 | 6f 6e 6c 79 20 73 65 6e |cing is |only sen| |000003c0| 74 20 74 6f 20 6f 70 65 | 6e 20 0d 77 69 6e 64 6f |t to ope|n .windo| |000003d0| 77 73 2c 20 73 6f 20 49 | 20 6d 75 73 74 20 6c 65 |ws, so I| must le| |000003e0| 61 76 65 20 27 74 72 61 | 63 65 57 69 6e 27 20 6f |ave 'tra|ceWin' o| |000003f0| 70 65 6e 2e 0d 0d 54 68 | 65 6e 20 49 20 6f 70 65 |pen...Th|en I ope| |00000400| 6e 20 61 6e 79 20 72 61 | 6e 64 6f 6d 20 6e 6f 6e |n any ra|ndom non| |00000410| 2d 43 20 66 69 6c 65 20 | 28 62 65 63 61 75 73 65 |-C file |(because| |00000420| 20 49 20 77 61 6e 74 20 | 74 68 65 20 66 75 6e 63 | I want |the func| |00000430| 74 69 6f 6e 20 74 6f 20 | 66 61 69 6c 29 2c 20 67 |tion to |fail), g| |00000440| 6f 20 0d 74 6f 20 74 68 | 65 20 62 65 67 69 6e 6e |o .to th|e beginn| |00000450| 69 6e 67 20 6f 66 20 74 | 68 65 20 66 69 6c 65 2c |ing of t|he file,| |00000460| 20 61 6e 64 20 75 73 65 | 20 74 68 65 20 55 74 69 | and use| the Uti| |00000470| 6c 73 3a 45 78 65 63 75 | 74 65 20 6d 65 6e 75 20 |ls:Execu|te menu | |00000480| 63 6f 6d 6d 61 6e 64 20 | 74 6f 20 72 75 6e 20 0d |command |to run .| |00000490| 27 6e 65 78 74 46 75 6e | 63 27 20 28 74 79 70 65 |'nextFun|c' (type| |000004a0| 20 63 6c 6f 76 65 72 2d | 27 2c 20 74 68 65 6e 20 | clover-|', then | |000004b0| 6e 65 78 74 46 3c 73 70 | 61 63 65 3e 29 2e 20 54 |nextF<sp|ace>). T| |000004c0| 68 65 20 6f 75 74 70 75 | 74 20 73 68 6f 75 6c 64 |he outpu|t should| |000004d0| 20 6c 6f 6f 6b 20 0d 73 | 6f 6d 65 74 68 69 6e 67 | look .s|omething| |000004e0| 20 6c 69 6b 65 20 74 68 | 65 20 66 6f 6c 6c 6f 77 | like th|e follow| |000004f0| 69 6e 67 3a 20 0d 0d 6e | 65 78 74 46 75 6e 63 20 |ing: ..n|extFunc | |00000500| 0d 20 73 65 61 72 63 68 | 46 75 6e 63 20 27 31 27 |. search|Func '1'| |00000510| 20 0d 20 20 67 65 74 50 | 6f 73 20 0d 20 20 4f 4b | . getP|os . OK| |00000520| 3a 20 33 38 35 33 30 0d | 20 20 73 65 6c 65 63 74 |: 38530.| select| |00000530| 20 27 33 38 35 33 30 27 | 20 0d 20 20 4f 4b 3a 20 | '38530'| . OK: | |00000540| 0d 20 20 73 61 76 65 56 | 61 72 73 20 0d 20 20 4f |. saveV|ars . O| |00000550| 4b 3a 20 0d 20 20 69 66 | 20 27 28 31 3d 3d 31 29 |K: . if| '(1==1)| |00000560| 27 20 27 0a 09 09 6e 65 | 78 74 4c 69 6e 65 0a 09 |' '...ne|xtLine..| |00000570| 27 20 27 65 6c 73 65 27 | 20 27 0a 09 09 70 72 65 |' 'else'| '...pre| |00000580| 76 69 6f 75 73 4c 69 6e | 65 0a 09 27 20 0d 20 20 |viousLin|e..' . | |00000590| 20 6e 65 78 74 4c 69 6e | 65 20 0d 20 20 20 4f 4b | nextLin|e . OK| |000005a0| 3a 20 0d 20 20 4f 4b 3a | 20 0d 20 20 67 65 74 50 |: . OK:| . getP| |000005b0| 6f 73 20 0d 20 20 4f 4b | 3a 20 33 38 35 37 33 0d |os . OK|: 38573.| |000005c0| 20 20 73 65 74 20 27 70 | 6f 73 27 20 27 33 38 35 | set 'p|os' '385| |000005d0| 37 33 27 20 0d 20 20 4f | 4b 3a 20 33 38 35 37 33 |73' . O|K: 38573| |000005e0| 0d 20 20 73 65 74 56 61 | 72 20 27 72 65 67 45 78 |. setVa|r 'regEx| |000005f0| 70 72 27 20 27 31 27 20 | 0d 20 20 4f 4b 3a 20 0d |pr' '1' |. OK: .| |00000600| 20 20 73 65 74 56 61 72 | 20 27 66 6f 72 77 61 72 | setVar| 'forwar| |00000610| 64 27 20 27 31 27 20 0d | 20 20 4f 4b 3a 20 0d 20 |d' '1' .| OK: . | |00000620| 20 73 65 74 56 61 72 20 | 27 69 67 6e 6f 72 65 43 | setVar |'ignoreC| |00000630| 61 73 65 27 20 27 31 27 | 20 0d 20 20 4f 4b 3a 20 |ase' '1'| . OK: | |00000640| 0d 20 20 73 65 61 72 63 | 68 20 27 5e 5b 5e 20 5c |. searc|h '^[^ \| |00000650| 74 5c 28 23 5c 72 2f 40 | 5d 2e 2a 5c 28 2e 2a 5c |t\(#\r/@|].*\(.*\| |00000660| 29 24 27 20 27 33 38 35 | 37 33 27 20 0d 20 20 45 |)$' '385|73' . E| |00000670| 52 52 4f 52 3a 20 53 65 | 61 72 63 68 20 75 6e 73 |RROR: Se|arch uns| |00000680| 75 63 63 65 73 73 66 75 | 6c 0d 20 45 52 52 4f 52 |uccessfu|l. ERROR| |00000690| 3a 20 53 65 61 72 63 68 | 20 75 6e 73 75 63 63 65 |: Search| unsucce| |000006a0| 73 73 66 75 6c 0d 45 52 | 52 4f 52 3a 20 53 65 61 |ssful.ER|ROR: Sea| |000006b0| 72 63 68 20 75 6e 73 75 | 63 63 65 73 73 66 75 6c |rch unsu|ccessful| |000006c0| 0d 0d 0d 54 68 65 20 74 | 72 61 63 65 20 6f 75 74 |...The t|race out| |000006d0| 70 75 74 20 73 68 6f 77 | 73 20 74 68 61 74 20 74 |put show|s that t| |000006e0| 68 65 20 70 72 6f 62 6c | 65 6d 20 77 61 73 20 61 |he probl|em was a| |000006f0| 6e 20 75 6e 73 75 63 63 | 65 73 73 66 75 6c 20 73 |n unsucc|essful s| |00000700| 65 61 72 63 68 2e 20 49 | 6e 20 0d 74 68 69 73 20 |earch. I|n .this | |00000710| 63 61 73 65 2c 20 61 20 | 64 69 61 6c 6f 67 20 69 |case, a |dialog i| |00000720| 6e 66 6f 72 6d 65 64 20 | 75 73 20 6f 66 20 74 68 |nformed |us of th| |00000730| 69 73 20 66 61 63 74 20 | 61 6e 79 77 61 79 2c 20 |is fact |anyway, | |00000740| 62 75 74 20 6d 61 6e 79 | 20 41 6c 70 68 61 20 0d |but many| Alpha .| |00000750| 72 6f 75 74 69 6e 65 73 | 20 61 72 65 20 6e 6f 74 |routines| are not| |00000760| 20 61 73 20 66 72 69 65 | 6e 64 6c 79 20 77 68 65 | as frie|ndly whe| |00000770| 6e 20 69 74 20 63 6f 6d | 65 73 20 74 6f 20 65 72 |n it com|es to er| |00000780| 72 6f 72 20 6d 65 73 73 | 61 67 65 73 2e 0d 00 00 |ror mess|ages....| |00000790| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000007a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000007b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000007c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000007d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000007e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000007f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000800| 00 00 01 00 00 00 01 4c | 00 00 00 4c 00 00 00 32 |.......L|...L...2| |00000810| 6f 6e 74 57 69 6e 3b 0d | 65 78 74 65 72 6e 20 69 |ontWin;.|extern i| |00000820| 6e 74 09 09 09 66 6f 72 | 65 47 72 6f 75 6e 64 3b |nt...for|eGround;| |00000830| 09 44 65 62 75 67 67 69 | 6e 67 02 00 00 00 54 45 |.Debuggi|ng....TE| |00000840| 58 54 41 4c 46 41 01 00 | ff ff ff ff 00 00 00 00 |XTALFA..|........| |00000850| 00 00 54 45 58 54 41 4c | 46 41 01 00 ff ff ff ff |..TEXTAL|FA......| |00000860| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000870| 00 00 a6 c5 21 83 00 00 | 07 0e 00 00 01 7e 78 74 |....!...|.....~xt| |00000880| 65 72 6e 20 63 68 61 72 | 09 09 09 2a 66 75 6e 63 |ern char|...*func| |00000890| 54 69 74 6c 65 3b 0d 65 | 78 74 65 72 6e 20 72 65 |Title;.e|xtern re| |000008a0| 67 65 78 70 09 09 2a 72 | 65 67 73 74 72 75 63 74 |gexp..*r|egstruct| |000008b0| 3b 0d 65 78 74 65 72 6e | 20 69 6e 74 09 09 09 66 |;.extern| int...f| |000008c0| 75 6e 63 50 61 72 3b 0d | 65 78 74 65 72 6e 20 54 |uncPar;.|extern T| |000008d0| 63 6c 5f 49 6e 74 65 72 | 70 09 2a 61 49 6e 74 65 |cl_Inter|p.*aInte| |000008e0| 72 70 3b 0d 65 78 74 65 | 72 6e 20 54 63 6c 5f 43 |rp;.exte|rn Tcl_C| |000008f0| 6d 64 42 75 66 09 61 42 | 75 66 66 65 72 3b 0d 65 |mdBuf.aB|uffer;.e| |00000900| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 94 00 00 |...H..Mo|naco....| |00000910| 00 00 00 00 00 00 00 00 | 00 6b 00 67 df d2 00 68 |........|.k.g...h| |00000920| 33 aa 00 00 00 00 00 04 | 00 04 00 28 00 03 01 dd |3.......|...(....| |00000930| 01 fd 00 28 00 03 01 dd | 01 fd 00 05 17 b1 00 00 |...(....|........| |00000940| 00 00 00 00 00 00 00 00 | 00 00 01 00 00 00 01 00 |........|........| |00000950| 00 00 01 4c 00 00 00 4c | 00 00 00 32 00 58 e3 20 |...L...L|...2.X. | |00000960| 06 9e 00 00 00 1c 00 32 | 00 00 4d 50 53 52 00 00 |.......2|..MPSR..| |00000970| 00 0a 03 ed ff ff 00 00 | 00 00 00 59 7b 8c 00 00 |........|...Y{...| +--------+-------------------------+-------------------------+--------+--------+